﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<form encType=multipart/form-data method=post onsubmit="return validate_form(this);"  action=/RoomManage/booking id="form1">


 
    <h2>预定房间</h2>
        <div class="row">
            <input id="name" name="name" type="text" class="input">
            您的姓名:
        </div>
        <div class="row">
            <input id="email"  name="email" type="text" class="input">
            您的邮箱:
        </div>
        <div class="row">
            <input id="phone" name="phone" type="text" class="input">
            您的电话:
        </div>
        
        <div class="row">
            <div class="select1">
                <select id="room" name="room">
                    <%hotel.BLL.tb_room roombl = new hotel.BLL.tb_room();
                      foreach(hotel.Model.tb_room mod in roombl.GetModelList(""))
                      { %>
                    <option value="<%=mod.ID %>"><%=mod.title%></option>
                    <%} %>
                </select></div>
            房间:
        </div>
        <div class="row">
             <div class="select2">
                <select id ="day" name="day">
                    <%int i;
                      for (i=1;i<=31;i++){ %>
                    <option value="<%=i %>"><%=i %></option>
                    <%} %>
                </select></div>
            <div class="select2">
                <select id ="moth" name="moth">
                    <%
                      for (i=1;i<=12;i++){ %>
                    <option value="<%=i %>"><%=i %></option>
                    <%} %>

                </select></div>  
            住店日期:
        </div>
        <div class="row_textarea">
            备注:
		<textarea id="context" name="context" cols="3" rows="3"></textarea>
        </div>
        <div class="wrapper">
           <input  type="submit"  value="预定" />
        </div>
</form>
